package ru.isys.yoomee.util.timemap;

import java.util.ArrayList;

import ru.isys.yoomee.model.Venue;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;

public class TimemapItemizedOverlay extends ItemizedOverlay<OverlayItem> {

    private static int maxNum = 5;
    private ArrayList<TimemapItem> mOverlays = new ArrayList<TimemapItem>();
    
    private int index = 0;
    private boolean full = false;
    private Context context;
    private OverlayItem previousoverlay;

    public TimemapItemizedOverlay(Context context, Drawable defaultMarker) {
        super(boundCenterBottom(defaultMarker));
        this.context = context;
        
    }

    @Override
    protected OverlayItem createItem(int i) {
        return mOverlays.get(i);
    }

    @Override
    public int size() {
       return mOverlays.size();
    }    
    public void addOverlay(TimemapItem overlay) {
        mOverlays.add(overlay);
        populate();
    }    
    
    @Override
    public void draw(Canvas canvas, MapView mapView, boolean shadow) {    
        super.draw(canvas, mapView, false);   
    }
}